<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            /* box-sizing: border-box; */
        }
        .box{
            display: inline-block;
            margin:10px 10 50px 20px;
            width: 320px;
            height: 320px;
            border: 1px solid green;
            
        }
        .box div{
            width: 100px;
            height: 100px;
            border: 1px dashed black;
            box-sizing: border-box;
            float: left;
            box-sizing: border-box;
            overflow: hidden;
            
        }
         div:nth-of-type(2),div:nth-of-type(5),div:nth-of-type(8)
        {
            margin-left: 10px;
            margin-right: 10px;
        }
        div:nth-of-type(4),div:nth-of-type(5),div:nth-of-type(6){
            margin-top: 10px;
            margin-bottom: 10px;
        } 
        .b:nth-of-type(1){
            background: url(./img/6.jpg) no-repeat;
            background-position:-1px -1px;
        }
        .b:nth-of-type(2){
            background: url(./img/6.jpg) no-repeat;
            background-position:-100px 0;
        }
        .b:nth-of-type(3){
            background: url(./img/6.jpg) no-repeat;
            background-position:-20px 0;
        }
        .b:nth-of-type(4){
            background: url(./img/6.jpg) no-repeat;
            background-position:0 -100px;
        }
        .b:nth-of-type(5){
            background: url(./img/6.jpg) no-repeat;
            background-position:-100px -100px;
        }
        .b:nth-of-type(6){
            background: url(./img/6.jpg) no-repeat;
            background-position:-200px -100px;
        }
        .b:nth-of-type(7){
            background: url(./img/6.jpg) no-repeat;
            background-position:0 -200px;
        }
        .b:nth-of-type(8){
            background: url(./img/6.jpg) no-repeat;
            background-position:-100px -200px;
        }
        .b:nth-of-type(9){
            background: url(./img/6.jpg) no-repeat;
            background-position:-200px -200px;
        }
        .c2{
            display: inline-block;
            background:url(./img/6.jpg);
            /* background-size: 100%; */
            clear: both;
            width: 320px;
            height: 320px;
        }
        .aa{
            width: 200px;
            height: 200px;
            border: 10px solid rgb(230, 221, 221);
            padding: 60px;
            color: honeydew;
            background: url(./img/6.jpg) no-repeat;
            background-size: 100px;
            /* background-origin:content-box ; */
            background-origin:padding-box ;
            /* background-origin:border-box ; */
        }
        .dd{
            width: 200px;
            height: 200px;
            border: 10px solid rgb(230, 221, 221);
            padding: 60px;
            color: honeydew;
            background: url(./img/6.jpg) no-repeat;
            /* background-size: 100px; */
            /* background-clip:content-box ; */
            background-clip:padding-box ;
        }
    </style>
</head>
<body>
    <span class="c2"></span>
    <div class="box">
      <div class="b"></div>
      <div class="b"></div>
      <div class="b"></div>
      <div class="b"></div>
      <div class="b"></div>
      <div class="b"></div>
      <div class="b"></div>
      <div class="b"></div>
      <div class="b"></div>
    </div>
    <div class="aa">
        年啊大的哈大好大的
    </div>
    <div class="dd">
        年啊大的哈大好大的
    </div>
</body>
</html>